using System;
using System.Collections.Generic;
using System.Text;
using eShop.Model;

namespace AutoGear.BLL
{
    public class ProductBrandNameCompare : IComparer<Manufacturer>
    {
        #region IComparer<ProductBrand> Members

        public int Compare(Manufacturer x, Manufacturer y)
        {
            return x.BrandName.CompareTo(y.BrandName);
        }

        #endregion
    }

    public class ProductBrandNameDescendingCompare : IComparer<Manufacturer>
    {
        #region IComparer<ProductBrand> Members

        public int Compare(Manufacturer x, Manufacturer y)
        {
            return y.BrandName.CompareTo(x.BrandName);
        }

        #endregion
    }

    public class ProductBrandIdCompare : IComparer<Manufacturer>
    {

        #region IComparer<ProductBrand> Members

        public int Compare(Manufacturer x, Manufacturer y)
        {
            return x.ProductBrandId.CompareTo(y.ProductBrandId);
        }

        #endregion
    }
}
